getGainInfo

Returns the overall capital gain information specific to the given sell transaction. The sell transaction must have the security as its 'account' which means the transaction must be the SplitTxn that is assigned to the security account. If the transaction is invalid or null then a zero/error capital gains is returned.

Return

a CapitalGainResult object with the details of the cost and gains for this transaction

Parameters

saleTxn

The transaction for which the gains should apply